pp108 : getClipboard() Method

getClipboard() Method


This method retrieves the object that represents the system clipboard.

Syntax

HTML

oClipboard = system.getClipboard()


Possible Values

oClipboard

Object that refers to the system clipboard.


Return Values


It returns the clipboard object.

Remarks


The following table lists the methods using which you can work with the clipboard object.

Table 1. List of Methods

Method

Description

clearData()

Clears all data saved to the system clipboard.

exportData()

Displays the system clipboard to which you can copy the data to be exported from the Process Platform application.

getData()

Retrieves the data saved to the system clipboard.

hasFormat()

Indicates whether the data saved to the system clipboard can be retrieved in a specified format.

importData()

Displays the system clipboard to which you can copy the data to be imported into the Process Platform application.

setData()

Saves data to the system clipboard.


Example


The following sample shows the implementation of the clipboard library.

function call to import data function importDataFromClipboard() { var clipboard=system.getClipboard(); Opens the clipboard dialog to import data clipboard.importData() }

See Also


System